import Welcome from './common/Welcome'
import React from 'react'

import { Route, Switch , Redirect} from 'react-router-dom'
import store from './store'
import { Provider } from 'react-redux'
import main from './main'
import test from './test'

const App = () =>{
    return (
        <Provider store= { store } > 
            <Switch>
                <Route path='/welcome' component={Welcome}></Route>
                <Route path='/main' component ={main}></Route>
                <Route path='/test' component ={test}></Route>
                <Redirect to='/welcome'/>
            </Switch>
            
        </Provider>
    )
}
export default App